/*
 * @Author: your name
 * @Date: 2021-04-12 10:32:48
 * @LastEditTime: 2021-04-12 10:33:15
 * @LastEditors: Please set LastEditors
 * @Description: 部门
 */
import request from '@/utils/request'
import { config } from '@/utils/requestconfig'

export function getDepartment(params) {
  return request({
    baseURL: config.webapi,
    url: 'Org/GetCurrOrg',
    method: 'post',
    params
  })
}

export function editDepartment(params) {
  return request({
    baseURL: config.webapi,
    url: 'Org/EditOrg',
    method: 'post',
    data: params
  })
}
export function setManager(params) {
  return request({
    baseURL: config.webapi,
    url: 'Org/SetManager',
    method: 'post',
    data: params
  })
}
export function DelDepartment(params) {
  return request({
    baseURL: config.webapi,
    url: 'Org/DelOrg',
    method: 'post',
    params: { id: params }
  })
}
